package com.lovo.web.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDate;

/**
 * 存款记录表
 */
@Getter
@Setter
@TableName("deposit_history")
@NoArgsConstructor
@ApiModel(value ="存款记录实体",description = "存款记录实体类")
public class DepositHistoryBean {
    /**存款记录主键*/
    @TableId(value = "pk_shId",type = IdType.AUTO)
    @ApiModelProperty(value = "存款记录主键")
    private long depositHistoryId;
    /**存款时间*/
    @TableField("dh_date")
    @ApiModelProperty(value = "存款时间")
    private LocalDate date;
    /**存款金额*/
    @TableField("dh_money")
    @ApiModelProperty(value = "存款金额")
    private float money;
    /**用户名*/
    @TableField("fk_userName")
    @ApiModelProperty(value = "用户名")
    private String userName;

    public DepositHistoryBean(LocalDate date, float money, String userName) {
        this.date = date;
        this.money = money;
        this.userName = userName;
    }
}
